package com.hzit.payweb.iclient;

import com.hzit.paycommon.paycommonapi.aliapy.AliapyTradeQueryReq;
import com.hzit.paycommon.paycommonapi.aliapy.AlipayPrePayReq;
import com.hzit.paycommon.paycommonapi.aliapy.AlipayWapPayReq;
import com.hzit.paycommon.paycommonapi.aliapy.resp.AlipayPrePayRespData;
import com.hzit.paycommon.paycommonapi.aliapy.resp.AlipayTradeQueryRespData;
import com.hzit.paycommon.paycommonapi.aliapy.resp.AlipayWapPayRespData;
import com.hzit.paycommon.paycommonapi.resp.RespVo;
import com.hzit.payweb.iclient.impl.AlipayFrontClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 支付宝前置服务接口
 */
@FeignClient(value = "ALIPAY-FRONT",fallback = AlipayFrontClientImpl.class)
public interface IAlipayFrontClient {

    /**
     * 扫码支付
     * @param paymentReq
     */
    @RequestMapping("/alipay/tradePre")
    public RespVo<AlipayPrePayRespData> tradePre(@RequestBody AlipayPrePayReq paymentReq);


    /**
     * 手机网站支付
     * @param paymentReq
     */
    @RequestMapping("/alipay/wapPay")
    public  RespVo<AlipayWapPayRespData>  tradeWap(@RequestBody AlipayWapPayReq paymentReq);



    /**
     * 支付宝交易查询接口
     * @param tradeQueryReq
     */
    @RequestMapping("/tradeQuery")
    public RespVo<AlipayTradeQueryRespData> tradeQuery(@RequestBody AliapyTradeQueryReq tradeQueryReq);


}
